package com.jie.demo02;

public class TestLambda2 {
   static class Love implements ILove{
        @Override
        public void love(int a) {
            System.out.println("i love you-->"+a);
        }
    }

    public static void main(String[] args) {

       ILove love =(int a)-> {
           System.out.println("i love you-->"+a);
       };
       love.love(520);
    }
}
interface ILove{
    void love(int a);
}

class Love implements ILove{
    @Override
    public void love(int a) {
        System.out.println("i love you-->"+a);
    }
}
